#!/usr/bin/env python3
# -*- coding: utf-8 -*-

__author__ = 'z417'

from setuptools import setup, find_packages

setup(
    name='webrunner',
    version='4.0.1',
    description='For web UI automation test',
    author='z417',
    author_email='1164182567@qq.com',
    platforms=['windows', 'linux', 'mac'],
    url='https://gitee.com/z417/webrunner',
    extras_require={
        ':sys_platform == "win32"': ['importlib-metadata==1.7.0', 'Jinja2==2.10.3', 'MarkupSafe==2.0.0a1', 'PyYAML==5.2', 'more-itertools==8.4.0', 'pytest-metadata==1.10.0', 'attrs==19.3.0', 'zipp==3.1.0', 'pytest==5.3.2',
                                     'pytest-html==2.0.1', 'psutil==5.6.7', 'urllib3==1.25.9', 'selenium==3.141.0', 'Click==7.0'],
        ':"linux" in sys_platform': ['importlib-metadata==1.7.0', 'Jinja2==2.10.3', 'MarkupSafe==2.0.0a1', 'PyYAML==5.2', 'more-itertools==8.4.0', 'pytest-metadata==1.10.0', 'attrs==19.3.0', 'zipp==3.1.0', 'pytest==5.3.2',
                                     'pytest-html==2.0.1', 'psutil==5.6.7', 'urllib3==1.25.9', 'selenium==3.141.0', 'Click==7.0'],
        ':sys_platform == "darwin"': ['importlib-metadata==1.7.0', 'Jinja2==2.10.3', 'MarkupSafe==2.0.0a1', 'PyYAML==5.2', 'more-itertools==8.4.0', 'pytest-metadata==1.10.0', 'attrs==19.3.0', 'zipp==3.1.0', 'pytest==5.3.2',
                                     'pytest-html==2.0.1', 'psutil==5.6.7', 'urllib3==1.25.9', 'selenium==3.141.0', 'Click==7.0'],
    },
    # install_requires=
    # packages=['common'],
    packages=find_packages(),
    py_modules=['webrunner/interface', 'webrunner/run'],
    data_files=[('webrunner/template', ['./webrunner/template/pages.template']),
                ('', ['./README.md']),
                ('doc', ['./doc/1_command.md']),
                ('doc', ['./doc/2_pageObject.md']),
                ('doc', ['./doc/3_pytest.md']),
                ('doc', ['./doc/4_advanced.md'])],
    entry_points={
        'console_scripts': [
            'wrun=webrunner.run:cli'
        ]
    },
    zip_safe=False,
    python_requires='>=3.6'
)

# run 'python setup.py install' in cmd
